package test;

import anaydis.sort.gui.SorterListener;

public class BenchMark implements SorterListener {

    private int comparisons;
    private int swaps;

    public BenchMark() {
        comparisons = 0;
        swaps = 0;
    }

    public void greater(int i, int j) {
        comparisons++;
    }

    public void equals(int i, int j) {
        comparisons++;
    }

    public void swap(int i, int j) {
        swaps++;
    }

    public void box(int from, int to) {

    }

    public void copy(int from, int to, boolean copyToAux) {

    }

    public int getComparisons() {
        return comparisons;
    }

    public int getSwaps() {
        return swaps;
    }

}
